package o;

import android.content.Context;
import android.view.View;
import com.huawei.appgallery.foundation.ui.framework.cardkit.bean.CardBean;
import com.huawei.gamebox.service.welfare.gift.bean.GiftCardBean;
import o.exp.d;

public class fby extends fce {
    private boolean ʻ;
    private long ʼ;
    private View ˎ;

    public fby(Context context, boolean z, int i, boolean z2, long j) {
        super(context, z, i);
        this.ʻ = z2;
        this.ʼ = j;
    }

    public cgz ˏ(View view) {
        super.ˏ(view);
        this.ˎ = view.findViewById(d.ˊˋ);
        ʽ(view);
        return this;
    }

    public void ˏ(CardBean cardBean) {
        if (cardBean instanceof GiftCardBean) {
            super.ˏ(cardBean);
            cardBean.ˋˋ(String.valueOf(this.ʼ));
            if (this.ˎ != null) {
                if (this.ˏ && this.ˊ && !this.ʻ) {
                    this.ˎ.setVisibility(0);
                } else {
                    this.ˎ.setVisibility(8);
                }
            }
            if (this.ˋ != null && this.ˋ.getVisibility() == 8) {
                this.ˋ.setVisibility(4);
            }
        }
    }

    protected void ˊ() {
    }
}
